home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / netmail / tmnice42.zip / BATFILES.ZIP / AFTER.BAT next >
DOS Batch File  |  1996-05-26  |  871b  |  41 lines

  1. @ECHO OFF
  2. rem
  3. rem  This is an example how to use ASK.EXE
  4. rem  for invoking or not the Spell Checking program SS.EXE
  5. rem  You should have installed the spell checker program first.
  6. rem  However, that program does not come in the TmNice package.
  7. rem
  8. rem  Copy this file to the TERMAIL directory, please.
  9. rem
  10. rem  Define in TMNICE.INI:
  11. rem  RunAfterTmNice=\TERMINAT\TERMAIL\AFTER.BAT
  12. rem  SkipIfCancelled=YES
  13. rem
  14. rem  If the file TMNICE.CAN exists then skip spell checking
  15. rem
  16. IF EXIST TMNICE.CAN GOTO END
  17. rem
  18. rem  Ask to invoke the Spell Checker
  19. rem
  20. ASK Check Spelling ? YN / YN
  21. rem
  22. rem  Y = errorlevel 1.  N = errorlevel 2.
  23. rem
  24. IF ERRORLEVEL 2 GOTO END
  25. rem
  26. rem  Switch to directory TERMAIL\SS
  27. rem
  28. CD SS
  29. rem
  30. rem  Start the Spell Checker
  31. rem
  32. SS.EXE ..\TM.MSG
  33. rem
  34. rem  Go back to the Termail directory
  35. rem
  36. CD ..
  37. rem
  38. rem  Done
  39. rem
  40. :END
  41.